package example.base;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-03
 */
public class ConcreteComponentA extends DecoratorComponent {

    private String status;

    /**
     * 重写但仍然优先执行原先逻辑
     */
    @Override
    public void operate() {
        super.operate();
        status = "ConcreteComponentA独有方法";
        System.out.println(status);
    }
}
